package IC.lir.Instrunction;

import java.util.LinkedList;

import IC.lir.LirFunction;

public class StaticFunctionCallInstruction extends NonLibraryFunctionCallInstruction {
	
	private String _funcName, _className;
	
	public StaticFunctionCallInstruction(Register retRegister, String className, String funcName, LinkedList<Data> params, IC.AST.FunctionCall node)
	{
		super(retRegister, params, node);
		_funcName = funcName;
		_className = className;
	}
	
	public String toString()
	{
		return String.format("StaticCall %s(%s), %s", 
				LirFunction.GenerateLIRFuncName(_className, _funcName, _ASTNode), 
				ParamsListToString(_params), 
				_retRegister);
	}
}
